import Vue from 'vue';
import Router from 'vue-router';

const Home = () => import('../views/home/Home');
const Search = () => import('../views/search/Search');
const Add = () => import('../views/add/Add');
const Message = () => import('../views/message/Message');
const Man = () => import('../views/man/Man');
const Profile = () => import('../views/profile/Profile');


Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/message',
    },
    {
      path: '/home',
      component: Home,
    },
    {
      path: '/search',
      component: Search,
    },
    {
      path: '/add',
      component: Add,
    },
    {
      path: '/message',
      component: Message,
    },
    {
      path: '/man',
      component: Man,
    },
    {
      path: '/profile',
      component: Profile,
    },
  ],
});

